package com.kgc.ssm.controller;

import com.kgc.ssm.entity.Contract;
import com.kgc.ssm.entity.dto.Result;
import com.kgc.ssm.service.ContractService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * 待审批合同处理controller
 */

@RestController
@RequestMapping("/contract")
public class ContractController {

    @Autowired
    private ContractService contractService;

    @GetMapping("/page")
    public Result<List<Contract>> findPage(Integer pageNum, Integer pageSize) {
        return contractService.findPage(pageNum, pageSize);
    }


}
